export const resSuccess = (data = {}, msg = '成功') => {
  return {
    code: 200,
    data,
    msg,
  }
}

export const resError = (msg = '服务器异常') => {
  return {
    code: 500,
    msg,
  }
}

export const resAuthError = (msg = '用户权限异常') => {
  return {
    code: 401,
    msg,
  }
}
